package com.wizz.trade.information.mapper;

import com.wizz.trade.information.entity.Moneytype;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 货项类型表 Mapper 接口
 * </p>
 *
 * @author fyftless
 * @since 2023-04-08 12:14:42
 */
@Mapper
public interface MoneytypeMapper extends BaseMapper<Moneytype> {

    /**
     * 下拉框获取款项种类
     * @return 款项种类号
     */
    List<Integer> getMoneyOption();

    /**
     * 下拉框获取款项明细
     * @param money 款项种类号
     * @return Map<id, moneyType>
     */
    List<Map<Integer, String>> getTypeOption(@Param("money") Integer money);
}
